package com.zhiwei.codesecurity.web.common.enums;

import com.zhiwei.codesecurity.common.base.IEnum;

public enum CollectionApiResultCode implements IEnum {
    /**
     * 接口异常编码
     */
    RECHARGE_ING(900001, "充值处理中"),


    EXCEPTION_SMS(990104, "短信发送失败"),
    EXCEPTION_MOBILE(990105, "手机号已注册"),
    EXCEPTION_VCODE(990106, "您的验证码输入有误，请重新输入"),
    EXCEPTION_LOGINERR(990107, "登录密码错误次数超限"),
    EXCEPTION_PAYPWD(990108, "交易密码已设置"),
    EXCEPTION_APP(990109, "当前已经是最新版本"),
    EXCEPTION_PAYPWD_ERROR(990110, "支付密码错误"),
    EXCEPTION_LOGIN_FROZEE(990111, "账号已锁定，请明日再登录"),
    EXCEPTION_LOGIN_FAIL(990112, "登录出错"),
    EXCEPTION_TOKEN_INVALID(990113, "您的账号登录已过期，请重新登录!"),
    EXCEPTION_RESET_LOGINPWD(990114, "请重置登录密码"),
    EXCEPTION_GET_MOBILE(990115, "获取用户手机号失败"),
    EXCEPTION_SEND_MOBILE_VCODE(990116, "发送短信验证码出错"),
    EXCEPTION_OLDPWD_ERROR(990117, "原始密码错误"),
    /**
     * 运行时异常
     */
    EXCEPTION(990201, "服务繁忙，请稍后重试"),
    EXCEPTION_UNKWOWN_INVEST(990202, "服务繁忙，请稍后重试"),

    /**
     * 远程接口调用异常
     */
    EXCEPTION_RPC_USER(990401, "用户中心远程服务调用异常"),
    EXCEPTION_RPC_ACCOUNT(990402, "账户中心远程服务调用异常"),
    EXCEPTION_RPC_PAY(990403, "支付中心远程服务调用异常"),
    EXCEPTION_MOBILE_NOTEXITS(990405, "手机号未注册"),

    /**
     * ocr认证
     */
    OVER_OCR_SIZE_LIMIT(990500, "OCR上传图片超出最大尺寸限制"),
    OVER_FACE_VIDEO_SIZE_LIMIT(990501, "活体检测视频超出最大尺寸限制"),
    BANK_CARD_BANKFACES_OCR_FAIL(990502, "银行卡识别失败，请重试"),
    ID_CARD_FRONT_OCR_FAIL(990503, "身份证正面识别失败，请重试"),
    ID_CARD_BANKFACES_OCR_FAIL(990504, "身份证反面识别失败，请重试"),
    UN_SUPPORT_OCR_TYPE(990505, "OCR不支持该类型认证"),
    AUTH_STEP_HAD_DONE(990506, "认证步骤已经完成"),
    PRE_AUTH_STEP_HAVENT_DONE(990507, "请先完成前一步认证"),
    ID_CARD_AUTHENTICATION_FAIL(990508, "身份证认证失败"),
    VEDIO_AUTHENTICATION_FAIL(990509, "视频认证失败"),
    LIVE_RECONGNITION_FAIL(990510, "人脸识别失败"),
    UNAUTHORIZED(990511, "请完成所有认证"),
    ID_CARD_AGE_LIMIT(990512, "您的年龄不符合平台要求，身份认证不通过"),
    CERT_UN_AUTHENTICATION(990513, "身份认证未完成"),
    WORK_INFO_UN_AUTHENTICATION(990514, "工作认证未完成"),
    WORK_INFO_AUTHENTICATION_ING(990515, "工作认证审核中"),
    BLACK_LIST_AUTHENTICATION_ING(990516, "后台审核中"),
    WORK_INFO_AUTHENTICATION_FAIL(990517, "工作认证失败"),
    BLACK_LIST_AUTHENTICATION_FAIL(990518, "后台审核失败"),

    /**
     * 银行卡相关异常
     */
    HAD_BIND_CARD(990600, "您已经绑卡，解绑请联系客服"),
    HAD_NO_BIND_CARD(990601, "您还未绑卡，请完成绑卡"),


    /**
     * 业务相关
     */

    ORDER_BEFORE_CALL_MOBILE(990706, "接单后才能拨打电话"),
    CONTACT_CONTACTS_LIMIT(990707, "该紧急联系人今天已被联系了%s次，请明天再试"),
    CONTACT_DEBTOR_LIMIT(990707, "该欠款人今天已被催收了%s次，请明天再试"),

    /**
     * 债权相关
     */
    CREDIT_DETAIL_READ_LIMIT(990800, "完成资料认证才能查看债权详情"),;

    private Integer key;

    private String value;

    private CollectionApiResultCode(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public Integer getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

}
